var AneObj = function  () {
	this.rootx = []; //ane 位置
	this.headx = [];
	this.heady = [];
	this.num = 50;
	this.alpha = 0;
	this.amp = [];
}
// aneObj.prototype.num = 50;
AneObj.prototype.init = function  () {
	for (var i = this.num ; i > 0; i--) {
			this.rootx[i] = i * 16 + Math.random() * 20;
			this.headx[i] = this.rootx[i];
			this.heady[i] =  can_h - 200 + Math.random() * 50;
			this.amp[i] = Math.random()*50 +50;
	};
};
AneObj.prototype.draw = function  () {
	ctx2.save();
	ctx2.globalAlpha = 0.6 ;
	ctx2.strokeStyle = "#3b154e";
	ctx2.lineCap = "round";
	ctx2.lineWidth = 20;
	// ctx2.shadowColor = "#fff";
	// ctx2.shadowBlur = 3;
	this.alpha += deltaTime * 0.0015;
	var l = Math.sin(this.alpha);
	for (var i = this.num; i > 0; i--) {
		ctx2.beginPath();
		ctx2.moveTo(this.rootx[i], can_h);
		this.headx[i] = this.rootx[i] + l * this.amp[i];
		
		
		ctx2.quadraticCurveTo(this.rootx[i], this.heady[i]+50 ,this.headx[i] , this.heady[i]);
		ctx2.stroke();
	};
	ctx2.restore();
};
